﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Vehicle_Infor_List.aspx.cs" Inherits="IYAKASAPortal.InfoEnter.Vehicle_Infor_List" %>
<%@ Register Assembly="gfPage" Namespace="gfPage" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>成都弥荣科技发展有限公司--打印号牌申请表列表</title>
<link rel="stylesheet" href="../support/tfNiceTable/tfNiceTable.css"/>
<script type="text/javascript" src="../support/tfNiceTable/tfNiceTable.js"></script>

<script type="text/javascript" src="../script/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">
        function doAjaxShow() {
            document.getElementById("divNiceTableMessage").style.left = $(window).width / 2;// window.parent.document.getElementById("mainContentFrame").scrollWidth/2-200;
            document.getElementById("divNiceTableMessage").style.top = $(window).height / 2;//window.parent.document.getElementById("mainContentFrame").scrollHeight/2-15;

            document.getElementById("divNiceTableMessage").style.display = "block";
        }
</script>
        <script type="text/javascript" src="../support/jedate/jedate.min.js"></script>
    <script type="text/javascript" src="../script/jquery.validate.min.js"></script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<input type="hidden" id="txtUniqueKey" name="txtUniqueKey" value="" />
<div id="divNiceTableMessage" class="tfNiceTableMessage" style="display:none;">正在处理...</div>
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="height:25px;">
<tr>
    <td class="main_title_left"></td>
    <td class="main_title_center">&nbsp;成都弥荣科技发展有限公司--打印号牌申请表列表</td>
    <td class="main_title_right"></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="mainWidth">
<tr>

    <td>
        <table class="table_without_border">
            <tr>
	            <td>号牌号码:<asp:TextBox visible="false" ID="txtKeywords" runat="server"></asp:TextBox>
                    <asp:TextBox ID ="txtHPHM"  runat="server" Width="160px"></asp:TextBox>
                    车架号码:<asp:TextBox ID ="txtVIN"   runat="server" Width="160px"></asp:TextBox>                            
                    检测次数:<asp:DropDownList runat="server" ID="drpJCCS" Width="160px"></asp:DropDownList>   
                    号牌种类:<asp:DropDownList ID="drpHPZL" runat="server" Width="160px"></asp:DropDownList>  
                    车辆种类:<asp:DropDownList ID="drpCLZL" runat="server" Width="160px"></asp:DropDownList>           
                    <asp:Button ID="btnSearch" runat="server" Text="" CssClass="btnSearch" OnClientClick="doAjaxShow();" OnClick="btnSearch_Click" />
                    <asp:Button ID="btnSearchAll" runat="server" Text="" CssClass="btnSearchAll" OnClientClick="doAjaxShow();" OnClick="btnSearchAll_Click" />             
                </td>
                <td align="right">
                   <asp:Button ID="btnPrintAJ" runat="server" Text="" CssClass="btnBrowseEnabled" OnClientClick="doAjaxShow();" OnClick="btnPrintAJ_Click"/>
                </td>
            </tr>
                <tr>
                <td >
                  检验类型:<asp:DropDownList ID="drpJYXL" runat="server" Width="160px" AutoPostBack="true" OnSelectedIndexChanged="drpJYXL_SelectedIndexChanged">
                          </asp:DropDownList> 
                    检验类别: <asp:DropDownList ID="drpJYLB" runat="server" AutoPostBack="true" Width="160px"></asp:DropDownList>  
                    是否合格:<asp:DropDownList ID="drpTestResult" runat="server" Width="160px">
                                <asp:listitem Value ="0">全部</asp:listitem>
                                <asp:listitem Value ="1">合格</asp:listitem>
                                <asp:listitem Value ="2">不合格</asp:listitem>
                          </asp:DropDownList>  

                     下线时间:<asp:TextBox ID="txtStart" runat="server" onclick="InitData('#txtStart')"  Width="160px"></asp:TextBox>
                    至
                    <asp:TextBox ID="txtEnd" runat="server" onclick="InitData('#txtEnd')" Width="160px" ></asp:TextBox> 
              
                 </td>
              </tr>
            <tr>
	            <td>
                              
                </td>
                <td align="right">
                </td>
            </tr>
        
        </table>
        <table border="1" cellspacing="0" cellpadding="3" class="tfNiceTable">
        <thead>
        <tr class="tfNiceTable_head_style">
             <td align="center" class="tfNiceTable_head_topleft">&nbsp;</td>
            <td style="width:15%" align="center">检测流水号</td>
            <td style="width:5%" align="center">检测线号</td>
            <td style="width:5%" align="center">检测次数</td>
            <td style="width:8%" align="center">号牌号码</td>
            <td style="width:10%" align="center">VIN</td>
            <td style="width:8%" align="center">号牌种类</td>
            <td style="width:8%" align="center">车辆种类</td>
            <td style="width:14%" align="center">检验类别</td>
            <td style="width:12%" align="center">下线时间</td>
            <td style="width:8%" align="center">检验结果</td>
            <td style="width:8%" align="center">总结论</td>
        </tr>
        </thead>
        <tbody>
        <asp:Repeater id="rptList" runat="server">
        <ItemTemplate>
        <tr style="cursor:pointer;" onmouseover="doMouseOver(this);" onmouseout="doMouseOut(this);" ondblclick="CDoubleClick()" onclick="setSelectedRowData(this,'<%# DataBinder.Eval(Container.DataItem, "ID")%>');">
            <td align="center" class="tfNiceTable_body_arrow"><img src="../support/tfNiceTable/images/tfNiceTable_Pointer.gif" alt="" /></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "JCLSH")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "JCXH")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "JCCS")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "HPHM")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "VIN")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "HPZL")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "CLZL")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "JYLB")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "CLXXSJ")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "JG")%></td>
            <td align="center"><%# DataBinder.Eval(Container.DataItem, "Upload")%></td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
        </tbody>
        <tr>
            <td align="right" colspan="12"><cc1:GreatPager id="GreatPager1" runat="server" GenerateNumber="true" onpageindexchanging="GreatPager1_PageIndexChanging" ></cc1:GreatPager></td>
        </tr>
    </table>
    <br />
    </td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
<script type="text/javascript">
    function CDoubleClick()
    {
        $("#btnPrintAJ").click();
    }
</script>

<script type="text/javascript">
    function InitData(oId) {
        jeDate({
            dateCell: oId,//isinitVal:true,
            format: "YYYY-MM-DD",
            isTime: true, //isClear:false,
            minDate: "2000-10-19",
            maxDate: "2099-11-8"
        });
    }

    $(document).ready(function () {
        $("#drpJYXL").change(function () {
            if ($(this).val() == "A") {

            }
            else {

            }

        });
    });

    jQuery(function () {
        jQuery.validator.methods.compareDate = function (value, element, param) {
            var startDate = jQuery(param).val();

            var date1 = new Date(Date.parse(startDate.replace("-", "/")));
            var date2 = new Date(Date.parse(value.replace("-", "/")));
            return date1 < date2;
        };

        jQuery("#form2").validate({
            focusInvalid: false,
            rules: {
                "txtStart": {
                    date: true
                },
                "txtEnd": {
                    date: true,
                    compareDate: "#txtStart"
                }
            },
            messages: {
                "txtStart": {
                    date: "时间格式错误!"
                },
                "txtEnd": {
                    date: "时间格式错误!",
                    compareDate: "结束日期必须大于开始日期!"
                }
            }
        });

    });
</script>

